package com.yunsc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunsc.dao.YunscStoreDao;
import com.yunsc.module.dto.StoreDataDto;
import com.yunsc.module.entity.YunscStoreEntity;
import com.yunsc.service.YunscStoreService;
import org.springframework.stereotype.Service;


@Service("yunscStoreService")
public class YunscStoreServiceImpl extends ServiceImpl<YunscStoreDao, YunscStoreEntity> implements YunscStoreService {



    @Override
    public YunscStoreEntity queryStoreInfo(Integer storeId) {
        YunscStoreEntity storeEntity = this.getById(storeId);
        // YoshopUploadFileEntity logoImage = uploadFileService.getUploadFileById(storeEntity.getLogoImageId());
        // storeEntity.setLogoImage(logoImage);
        // storeEntity.setImage_url(logoImage.getPreviewUrl());
        return storeEntity;
    }

    @Override
    public StoreDataDto queryStoreData(Integer storeId) {
        // 1、实时交易概况
        // 新增会员数

        // 2、统计数据
        // 订单概况
        // 商品总数量
        // 3、待发货订单(笔)
        // 已售罄商品
        // 4、获取近七日交易走势

        return null;
    }


}